package com.spzx.manager.mapper;

import com.spzx.model.entity.product.Category;
import com.spzx.model.vo.product.CategoryExcelVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * Project: spzx-parent
 * Package: com.spzx.manager.mapper
 * Version: 1.0
 * <p>
 * Created by  wangjiaxin  on 2024/3/2 08:07
 */
@Mapper
public interface CategoryMapper {
    public abstract List<Category> selectByParentId(Long parentId);

    public abstract int countByParentId(Long id);

    //查询所有分类
    List<Category> selectAll();

    //保存数据
    void batchInsert(List<CategoryExcelVo> cachedDataList);
}
